<template>
  <div>
    <van-nav-bar left-arrow style="background: blue">
      <template #left>
        <van-icon
          name="arrow-left"
          color="#fff"
          size="20"
          @click="$router.push('/personalcenter')"
        />
      </template>
      <template #title>
        <span style="color: #fff">版本信息</span>
      </template>
    </van-nav-bar>

    <div style="margin-bottom:0.6rem">
      <van-field v-model="text1" label="当前版本" input-align="right"/>
    </div>
    <van-field v-model="text2" label="版本信息" input-align="right"/>
  </div>
</template>

<script>
import {getPersonalCenterVersion} from '@/request/api'
export default {
  data() {
    return {
        text1:'',
        text2:'',
    };
  },
  created(){
      getPersonalCenterVersion()
      .then(res=>{
          if(res.errCode == 0){
              this.text1 = res.data.versions;
              this.text2 = res.data.infomation;
          }
      })
  }
};
</script>

<style scoped>
</style>